/*
 *  Copyright 2011 Iurii Dunko, Iana Potochniak.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */

package org.opu.yyminijava.syntaxtree;

import java.util.List;


/**
 *
 * @author Iurii Dunko
 * @author Iana  Potochniak
 */
public interface ForInitExpressionPart {
    
    /**
     * The 'for' statement can start form:
     *  int i, j = 0, k ...  - when we declar variable in for statement.
     * Or it's can start from:
     *  iterator = list.iterator(), ... - when we just when we set some value 
     * of the variable that already declared.
     * 
     * But in both situation in runtime we can get a list of variable and their 
     * value (if exist).
     * 
     * @return list of variable and their value (if exist), that declared in 
     * init part of 'for' statement.
     */
    public List<StatementExpression> getAllDeclaration();
}
